package org.springframework.security.core.context;

import java.io.Serializable;

import org.springframework.security.core.Authentication;

/**
 * @author Dillon
 * @date 2024/6/29
 * @slogan 致敬大师 致敬未来的你
 * @desc SecurityContext 认证缓存接口
 */
public interface SecurityContext extends Serializable {

	/**
	 * 获取认证对象
	 *
	 * @return 认证对象
	 */
	Authentication getAuthentication();

	/**
	 * 设置认证对象
	 *
	 * @param authentication 认证对象
	 */
	void setAuthentication(Authentication authentication);

}
